.class Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;
.super Ljava/lang/Object;
.source "AudioRecordDialog.java"

# interfaces
.implements Lcom/htc/android/footprints/utils/voice/Recorder$OnStateChangedListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/commonui/AudioRecordDialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/commonui/AudioRecordDialog;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V
    .locals 0
    .parameter

    .prologue
    .line 242
    iput-object p1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;->this$0:Lcom/htc/android/footprints/commonui/AudioRecordDialog;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onError(I)V
    .locals 5
    .parameter "error"

    .prologue
    .line 221
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;->this$0:Lcom/htc/android/footprints/commonui/AudioRecordDialog;

    invoke-virtual {v2}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    .line 222
    .local v1, res:Landroid/content/res/Resources;
    const/4 v0, 0x0

    .line 223
    .local v0, message:Ljava/lang/String;
    packed-switch p1, :pswitch_data_0

    .line 231
    :goto_0
    if-eqz v0, :cond_0

    .line 232
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    iget-object v3, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;->this$0:Lcom/htc/android/footprints/commonui/AudioRecordDialog;

    invoke-virtual {v3}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x7f0a0003

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x1080027

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f0a0065

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setCancelable(Z)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->show()Lcom/htc/widget/HtcAlertDialog;

    .line 240
    :cond_0
    return-void

    .line 225
    :pswitch_0
    const v2, 0x7f0a0063

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 226
    goto :goto_0

    .line 228
    :pswitch_1
    const v2, 0x7f0a0064

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 223
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onStateChanged(I)V
    .locals 1
    .parameter "state"

    .prologue
    .line 243
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;->this$0:Lcom/htc/android/footprints/commonui/AudioRecordDialog;

    #setter for: Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I
    invoke-static {v0, p1}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->access$502(Lcom/htc/android/footprints/commonui/AudioRecordDialog;I)I

    .line 244
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;->this$0:Lcom/htc/android/footprints/commonui/AudioRecordDialog;

    #calls: Lcom/htc/android/footprints/commonui/AudioRecordDialog;->updateUI()V
    invoke-static {v0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->access$600(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V

    .line 245
    return-void
.end method
